{% extends "base_generic.html" %}
{% block content %}
        <h1>Songs</h1>
        <h2><a href="/admin/songs//new/" class="add">Añadir song</a></h2>

        <table class="imgswithoutborders">
        {% for song in songs %}
          <tr{% if song.hidden %} class="oculto" {% endif %}>
            <td><strong style="font-size: 120%">{{ song.title }}</strong>
            <td><a href="/{{ song.url }}">Public</a></td>
            <td>{{ song.views }}</a></td>
            <td><a href="/admin/songs/{{ song.key }}/edit/">Editar</a></td>
            <td><a href="/admin/songs/{{ song.key }}/delete/" onclick="if(confirm('¿Do you really want to delete {{ song.name }}?')){return true;}else{return false;}">Borrar</a></td>
          </tr>
        {% endfor %}
        </table>

{% endblock %}
